# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=gpa
pkgver=0.10.0
pkgrel=2
pkgdesc="A graphical user interface for the GnuPG"
url="https://gnupg.org/related_software/gpa/"
arch="all"
license="GPL-3.0-or-later AND GPL-2.0-or-later"
makedepends="gpgme-dev gtk+2.0-dev"
subpackages="$pkgname-doc"
source="https://gnupg.org/ftp/gcrypt/gpa/gpa-$pkgver.tar.bz2"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-nls
	make
}

check() {
	msg "Running testsuites..."
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="87004fb0806e76012bc194f95afe9ef6044aec890b26e845f45c314e1bd8864f056ba5e32f9ef2e15b24b50840235e6e548a5e3006b255b4f1c20e0fd7710a3b  gpa-0.10.0.tar.bz2"
